import { connect } from 'react-redux'
import { makeLogin, pageChange} from '../actions'
import Login from '../components/Login'


const mapStateToProps = state => ({
    isLogin: state.profile.isLogin,
    error: state.profile.error
})




export default connect(
  mapStateToProps,
    { makeLogin, pageChange}
)(Login)

